package team02.client.core.config;

import team02.server.core.parser.CSVParser;


public class ConfigLangEn implements Config {

	@Override
	public String getParserMessage(int type) {
		ParserState state = CSVParser.parserState;
		switch (type) {
			case SYNTAX_ERROR:
				return "[SYNTAX ERROR]"+
					(state.getToken()==null?"":" Token '" + state.getToken() + "' at line ") + state.getLineNumber();
			case SEMANTIC_ERROR:
				return "[SEMANTIC ERROR] Token '" + state.getToken() + "' at line " + state.getLineNumber();
			default:
				return null;
		}
	}
}
